package com.train.trainmanage.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.train.trainmanage.model.LocomotiveModel;

@Mapper
public interface LocomotiveModelMapper {
    int deleteByPrimaryKey(Integer locoId);

    int insert(LocomotiveModel record);

    int insertSelective(LocomotiveModel record);

    LocomotiveModel selectByPrimaryKey(Integer locoId);

    int updateByPrimaryKeySelective(LocomotiveModel record);

    int updateByPrimaryKey(LocomotiveModel record);
    
    List<LocomotiveModel> listByMap(Map<String,Object> map);
    
    LocomotiveModel selectByTrainId(Integer trainId);
    
}